Asynchronous event handling for video streams in interactive voice response systems

ABSTRACT

A method and apparatus are disclosed for enabling an interactive voice response (IVR) system to deliver a video stream to a telecommunications terminal and handle events related to the video stream. In particular, the illustrative embodiment overcomes two disadvantages of the prior art. First, the illustrative embodiment enables events to be generated and caught by a script of an IVR system at any time during a call. Second, the illustrative embodiment enables events to be handled in parallel with the execution of a script of the IVR system, thereby enabling the performing of actions response to a stream-related event without halting or interfering with other tasks of the IVR script.

FIELD OF THE INVENTION

The present invention relates to telecommunications in general, and, more particularly, to handling events for video content streams in an interactive voice response system script.

BACKGROUND OF THE INVENTION

Many enterprises employ an interactive voice response (IVR) system that handles calls from telecommunications terminals. An interactive voice response system typically presents a hierarchy of menus to the caller, and prompts the caller for input to navigate the menus and to supply information to the IVR system. For example, a caller might touch the “3” key of his terminal's keypad, or say the word “three”, to choose the third option in a menu. Similarly, a caller might specify his bank account number to the interactive voice response system by inputting the digits via the keypad, or by saying the digits. In many interactive voice response systems the caller can connect to a person in the enterprise by either selecting an appropriate menu option, or by entering the telephone extension associated with that person.

FIG. 1 depicts telecommunications system 100 in accordance with the prior art. Telecommunications system 100 comprises telecommunications network 105, private branch exchange (PBX) 110, and interactive voice response system 120, interconnected as shown.

Telecommunications network 105 is a network such as the Public Switched Telephone Network [PSTN], the Internet, etc. that carries a call from a telecommunications terminal (e.g., a telephone, a personal digital assistant [PDA], etc.) to private branch exchange 110. A call might be a conventional voice telephone call, a text-based instant messaging (IM) session, a Voice over Internet Protocol (VoIP) call, etc.

Private branch exchange (PBX) 110 receives incoming calls from telecommunications network 105 and directs the calls to interactive voice response (IVR) system 120 or to one of a plurality of telecommunications terminals within the enterprise, depending on how private branch exchange 110 is programmed or configured. For example, in an enterprise call center, private branch exchange 110 might comprise logic for routing calls to service agents' terminals based on criteria such as how busy various service agents have been in a recent time interval, the telephone number called, and so forth. In addition, private branch exchange 110 might be programmed or configured so that an incoming call is initially routed to interactive voice response (IVR) system 120, and, based on caller input to IVR system 120, subsequently redirected back to PBX 110 for routing to an appropriate telecommunications terminal within the enterprise. Private branch exchange (PBX) 110 also receives outbound signals from telecommunications terminals within the enterprise and from interactive voice response (IVR) system 120, and transmits the signals on to telecommunications network 105 for delivery to a caller's terminal.

Interactive voice response (IVR) system 120 is a data-processing system that presents one or more menus to a caller and receives caller input (e.g., speech signals, keypad input, etc.), as described above, via private branch exchange 110. Interactive voice response system (IVR) 120 is typically programmable and performs its tasks by executing one or more instances of an IVR system application. An IVR system application typically comprises one or more scripts that specify what speech is generated by interactive voice response system 120, what input to collect from the caller, and what actions to take in response to caller input. For example, an IVR system application might comprise a top-level script that presents a main menu to the caller, and additional scripts that correspond to each of the menu options (e.g., a script for reviewing bank account balances, a script for making a transfer of funds between accounts, etc.).

A popular language for such scripts is the Voice extensible Markup Language (abbreviated VoiceXML or VXML). The Voice extensible Markup Language is an application of the extensible Markup Language, abbreviated XML, which enables the creation of customized tags for defining, transmitting, validating, and interpretation of data between two applications, organizations, etc. The Voice extensible Markup Language enables dialogs that feature synthesized speech, digitized audio, recognition of spoken and keyed input, recording of spoken input, and telephony. A primary objective of VXML is to bring the advantages of web-based development and content delivery to interactive voice response system applications.

FIG. 2 depicts an exemplary Voice extensible Markup Language (VXML) script (also known as a VXML document or page), in accordance with the prior art. The VXML script, when executed by interactive voice response system 120, presents a menu with three options; the first option is for transferring the call to the sales department, the second option is for transferring the call to the marketing department, and the third option is for transferring the call to the customer support department. Audio content (in particular, synthesized speech) that corresponds to text between the <prompt> and </prompt> tags is generated by interactive voice response system 120 and transmitted to the caller.

The VXML script of FIG. 2 also comprises two event handlers. An event can be generated when a caller provides input (e.g., speech, keypad entry, etc.) in response to a prompt from the VXML script, or when there is a prompt timeout (i.e., the caller does not provide any input for a specified time period after a prompt). The first event handler of the VXML script catches and processes events of type telephone.disconnected.hangup, which are generated when a caller hangs up, and the second event handler catches and processes events of type nomatch, which are generated when a caller's input does not match any of a menu's choices.

Another popular standard for IVR system application scripts is Speech Application Language Tags (SALT). FIG. 3 depicts an exemplary XML script of the prior art that contains Speech Application Language Tags (SALT) and provides functionality similar to the VXML script of FIG. 2.

SUMMARY OF THE INVENTION

As video displays become ubiquitous in telecommunications terminals, it can be advantageous to deliver video content to a telecommunications terminal during a call with an interactive voice response (IVR) system, in addition to audio content. For example, a user of a telecommunications terminal who is ordering apparel via an IVR system might receive a video content stream related to a particular item (e.g., depicting a model who is wearing the item, depicting the different available colors for the item, etc.). Furthermore, in some instances it might be desirable to deliver an audio content stream (e.g., music, news, etc.) to the user, perhaps during silent periods in the call, or perhaps as background audio throughout the entire call.

When a content stream (whether video, audio, or both) is delivered to a telecommunications terminal during a call with an IVR system, a variety of events related to the content stream can occur, such as: completion of playback of the content stream; user control of the content stream (e.g., pause, stop, fast forward, etc.); a drop-off in quality of service (QoS) for the content stream (e.g., due to network congestion, etc.); and so forth. It would be advantageous if an IVR system script were made aware of when such events occur, and were capable of responding accordingly (e.g., stopping playback of a content stream, queueing another content stream, etc.) without interfering with the other tasks of the IVR system script (e.g., collecting input from the caller, etc.).

In the illustrative embodiment of the present invention, the IVR system generates an asynchronous event when there is a content stream-related occurrence during a call, and the asynchronous event is caught by an appropriate event handler within the IVR system script. The event handler then spawns a separate thread that handles the event accordingly and executes in parallel with the IVR system script (i.e., the IVR system script continues handling the call while the thread executes).

The present invention overcomes two disadvantages of the prior art to enable an IVR system script to handle content stream-related events. First, the present invention enables events to be generated and caught by an IVR system script at any time during a call. In contrast, in the prior art an event can be generated and caught in an IVR system script only when either (i) a caller provides input in response to a prompt from the IVR system script, or (ii) a prompt timeout occurs. Second, because the present invention enables events to be handled in parallel with the execution of an IVR system script, appropriate actions can be performed in response to a stream-related event without halting or interfering with other tasks of the script.

The illustrated embodiment comprises: receiving a signal at an interactive voice response system during a call that involves the interactive voice response system and a telecommunications terminal, wherein the signal is associated with a content stream that is delivered to the telecommunications terminal during the call, and wherein the interactive voice response system executes an application to handle the call; and performing an action at the interactive voice response system in response to the signal; wherein the performing of the action is concurrent with the execution of the application.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts telecommunications system 100 in accordance with the prior art.

FIG. 2 depicts an exemplary Voice extensible Markup Language (VXML) script, in accordance with the prior art.

FIG. 3 depicts an exemplary markup-language script that contains Speech Application Language Tags (SALT), in accordance with the prior art.

FIG. 4 depicts telecommunications system 400 in accordance with the illustrative embodiment of the present invention.

FIG. 5 depicts a flowchart of the salient tasks of interactive voice response system 420, in accordance with the illustrative embodiment of the present invention.

FIG. 6 depicts an exemplary Voice extensible Markup Language (VXML) script, in accordance with the illustrative embodiment of the present invention.

FIG. 7 depicts an exemplary markup-language script that contains Speech Application Language Tags (SALT), in accordance with the illustrative embodiment of the present invention.

DETAILED DESCRIPTION

FIG. 4 depicts telecommunications system 400 in accordance with the illustrative embodiment of the present invention. Telecommunications system 400 comprises telecommunications network 105, private branch exchange (PBX) 410, interactive voice response system 420, content server 430, and content database 440, interconnected as shown.

Private branch exchange (PBX) 410 provides all the functionality of private branch exchange (PBX) 110 of the prior art, and is also capable of receiving streamed content (e.g., audio, video, multimedia, etc.) from content server 430, of forwarding streamed content on to telecommunications network 105 for delivery to a caller's terminal, and of transmitting signals related to streamed content to content server 430. Furthermore, in addition to conventional telephony-based signaling and voice signals, private branch exchange 410 is also capable of transmitting and receiving Internet Protocol (IP) data packets, Session Initiation Protocol (SIP) messages, Voice over IP (VOIP) traffic, and stream-related messages (e.g., Real Time Streaming Protocol [RTSP] messages, etc.) to and from IVR system 420. It will be clear to those skilled in the art, after reading this specification, how to make and use private branch exchange (PBX) 410.

Interactive voice response system 420 provides all the functionality of interactive voice response system 120 of the prior art, and is also capable of transmitting commands to content server 430 (e.g., starting playback of a content stream, stopping playback of the content stream, queueing another content stream, etc.) and of receiving information from content server 430 (e.g., an indication that playback of a content stream has begun, an indication that playback of a content stream has completed, etc.). It will be clear to those skilled in the art, after reading this specification, how to make and use interactive voice response system 420.

Content server 430 is capable of retrieving content from content database 440, of buffering and delivering a content stream to a calling terminal via private branch exchange 410, of receiving commands from interactive voice response (IVR) system 410 (e.g., to start playback of a content stream, to queue another content stream, etc.), and of transmitting status information to interactive voice response (IVR) system 410, in well-known fashion. It will be clear to those skilled in the art, after reading this specification, how to make and use content server 430.

Content database 440 is capable of storing a plurality of multimedia content (e.g., video content, audio content, etc.) and of retrieving content in response to commands from content server 430, in well-known fashion. It will be clear to those skilled in the art, after reading this specification, how to make and use content database 440.

FIG. 5 depicts a flowchart of the salient tasks of interactive voice response (IVR) system 420, in accordance with the illustrative embodiment of the present invention.

At task 510, an incoming call is received at interactive voice response system 420, in well-known fashion.

At task 515, interactive voice response (IVR) system 420 assigns an instance of an appropriate IVR system application to the incoming call, in well-known fashion. As will be appreciated by those skilled in the art, although in the illustrative embodiment an instance of an IVR system application handles one incoming call at a time, in some other embodiments of the present invention an application instance might handle a plurality of calls concurrently.

At task 520, interactive voice response (IVR) system 420 begins executing the IVR application instance, in well-known fashion.

At task 525, interactive voice response (IVR) system 420 issues a command to content server 430 to retrieve content from database 440 and deliver the content to the caller in streaming fashion, as is well-known in the art.

At task 530, interactive voice response (IVR) system 420 receives a signal that indicates some occurrence during the call, in well-known fashion. Note that the term “occurrence” is used to distinguish from a software “event” object.

At task 535, interactive voice response (IVR) system 420 checks whether the particular occurrence is of a type that is associated with synchronous handling, as in the prior art. If so, execution proceeds to task 541, otherwise execution proceeds to task 542.

At task 541, interactive voice response (IVR) system 420 generates an instance of the appropriate event class, in accordance with the prior art.

At task 551, the IVR application instance catches the event instance generated at task 541, in accordance with the prior art.

At task 561, the IVR application instance jumps to the appropriate event handler for instances of event, in accordance with the prior art.

At task 571, the IVR application instance executes the code of the event handler, in accordance with the prior art.

At task 581, the IVR application instance resumes execution at the appropriate line of code, in accordance with the prior art.

At task 542, interactive voice response (IVR) system 420 generates an instance of an asyncevent class that corresponds to the occurence. The asyncevent class is a new class that is defined in the illustrative embodiment and corresponds to events that are associated with asynchronous handling (e.g., content stream-related events, etc.). All such events are represented by subclasses of asyncevent, such as media.client.video.playdone, media.network.congestion, and so forth.

At task 552, the IVR application instance catches the asyncevent instance generated at task 551, in well-known fashion.

At task 562, the IVR application instance spawns a thread for handling the asyncevent instance, in well-known fashion. The thread is a child thread in that it cannot interfere with the execution of the IVR application instance, and it terminates when the IVR application instance terminates.

At task 582, the IVR application instance continues its execution, in well-known fashion.

Task 590 checks whether execution of the IVR application instance has completed. If so, execution continues back at task 510 for the next incoming call; otherwise, execution continues back at task 530 for handling a subsequent event during the current call.

FIG. 6 depicts an exemplary Voice Extensible Markup Language (VXML) script, in accordance with the illustrative embodiment of the present invention. The script is the same as the script of FIG. 2 of the prior art, with the addition of lines of code depicted in boldface. As shown in FIG. 6, the script now contains two additional event handlers for two types of asyncevents: media.network.congestion, and media.client.video.playdone. In events of the former type, the current video content stream is stopped by proceeding to the VXML script at Uniform Resource Locator (URL) “http://videoserver/stopMedia”. In events of the latter type, the appropriate processing is performed by the script at URL “http://videoserver/stopMedia”.

FIG. 7 depicts an exemplary markup-language script that contains Speech Application Language Tags (SALT), in accordance with the illustrative embodiment of the present invention. The script is the same as the script of FIG. 3 of the prior art, with the addition of lines of code depicted in boldface. As shown in FIG. 7, the script now contains a command to initiate playback of a video stream associated with Uniform Resource Locator (URL) “http://videoserver/playintro.3gp”, and additional event handlers for handling the completion of playback of the current video stream, network congestion, and video prompt errors.

It is to be understood that the above-described embodiments are merely illustrative of the present invention and that many variations of the above-described embodiments can be devised by those skilled in the art without departing from the scope of the invention. For example, in this Specification, numerous specific details are provided in order to provide a thorough description and understanding of the illustrative embodiments of the present invention. Those skilled in the art will recognize, however, that the invention can be practiced without one or more of those details, or with other methods, materials, components, etc.

Furthermore, in some instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the illustrative embodiments. It is understood that the various embodiments shown in the Figures are illustrative, and are not necessarily drawn to scale. Reference throughout the specification to “one embodiment” or “an embodiment” or “some embodiments” means that a particular feature, structure, material, or characteristic described in connection with the embodiment(s) is included in at least one embodiment of the present invention, but not necessarily all embodiments. Consequently, the appearances of the phrase “in one embodiment,” “in an embodiment,” or “in some embodiments” in various places throughout the Specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments. It is therefore intended that such variations be included within the scope of the following claims and their equivalents. 

1. A method comprising: receiving a signal at an interactive voice response system during a call that involves said interactive voice response system and a telecommunications terminal, wherein said signal is associated with a content stream that is delivered to said telecommunications terminal during said call, and wherein said interactive voice response system executes an application to handle said call; and performing an action at said interactive voice response system in response to said signal; wherein the performing of said action is concurrent with the execution of said application.
 2. The method of claim 1 further comprising: generating at said interactive voice response system an event that is based on said signal; and catching said event in said application of said interactive voice response system.
 3. The method of claim 2 wherein the catching of said event and the performing of said action is specified by a script of said application that contains one or both of Voice extensible Markup Language and Speech Application Language Tags.
 4. The method of claim 1 wherein the performing of said action is in a separate thread of said application.
 5. The method of claim 1 wherein said application is for collecting input from said telecommunications terminal during said call; and wherein the performing of said action does not halt the collecting of said input.
 6. The method of claim 1 wherein said signal is a Session Initiation Protocol message that is sent by said telecommunications terminal.
 7. The method of claim 1 wherein said signal comprises a command from the user of said telecommunications terminal for controlling playback of said content stream.
 8. The method of claim 1 wherein said signal is received from a content server that delivers said content stream to said telecommunications terminal.
 9. The method of claim 8 wherein said signal indicates one of: (i) the start of playback of said content stream, and (ii) the completion of playback of said content stream.
 10. The method of claim 1 wherein said signal indicates that quality of service for said content stream is below a threshold.
 11. The method of claim 1 wherein said signal specifies the current playback position of said content stream.
 12. The method of claim 1 wherein said action is for one or both of: stopping said content stream, and queueing another content stream.
 13. The method of claim 1 wherein said action comprises logging temporal information associated with playback of said content stream.
 14. A method comprising: catching an event in a script of an interactive voice response system, wherein said event is associated with a content stream that is delivered to a telecommunications terminal during a call that involves said telecommunications terminal and an interactive voice response system; spawning a thread that performs an action in response to said event; and interpreting one or more lines of code of said script during the execution of said thread.
 15. The method of claim 14 wherein said event is associated with one of: (i) the start of playback of said content stream, and (ii) the completion of playback of said content stream.
 16. The method of claim 14 wherein said event is associated with quality of service for said content stream.
 17. The method of claim 14 wherein said event is associated with a user command for controlling playback of said content stream.
 18. The method of claim 14 wherein said script contains one or both of Voice extensible Markup Language and Speech Application Language Tags.
 19. A method comprising: catching an event in a markup-language script; spawning a thread in response to said event; and interpreting one or more lines of code of said markup-language script during the execution of said thread.
 20. The method of claim 19 wherein said markup-language script is for handling a call that involves an interactive voice response system, and wherein said markup-language script contains one or both of Voice extensible Markup Language and Speech Application Language Tags. 